package com.jshare.action;

import java.util.List;

import javax.annotation.Resource;

import com.jshare.dao.ArCategoryDAO;
import com.opensymphony.xwork2.ActionSupport;
/**
 * 
 * @author 作者 ：陆意
 * @version 1.0
 *
 */
public class ArCategoryAction extends ActionSupport{

	@Resource(name="arCategoryDao")
	private ArCategoryDAO arCategory;
	
	private List allCategory;
	
	public String getCategory(){
		
		this.allCategory=arCategory.findAll();
		
		return "findAllCategorySuc";
	}

	public ArCategoryDAO getArCategory() {
		return arCategory;
	}

	public void setArCategory(ArCategoryDAO arCategory) {
		this.arCategory = arCategory;
	}

	public List getAllCategory() {
		return allCategory;
	}

	public void setAllCategory(List allCategory) {
		this.allCategory = allCategory;
	}
	
}
